package com.sdhs.workflow.domain.bo;

import com.sdhs.common.core.domain.BaseEntity;
import com.sdhs.common.utils.validator.group.AddGroup;
import com.sdhs.common.utils.validator.group.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 流程审批人配置业务对象 test_leave
 *
 * @author may
 * @date 2023-07-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WfApproveUserConfigBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 审批编码
     */
    @NotBlank(message = "审批编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String approveCode;

    /**
     * 审批节点名称
     */
    @NotNull(message = "审批节点名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String approveNodeName;

    /**
     * 节点审批人Ids
     */
    @NotNull(message = "节点审批人Ids不能为空", groups = {AddGroup.class, EditGroup.class})
    private String approveNodeUserIds;

    // 部门id(所属公司id)
    private String deptId;
}
